package cn.ticket.service;

import java.util.List;

import cn.ticket.model.Department;

public interface DepartmentService {
	 int deleteByPrimaryKey(Integer id);

	    int insert(Department record);

	    int insertSelective(Department record);

	    Department selectByPrimaryKey(Integer id);

	    int updateByPrimaryKeySelective(Department record);

	    int updateByPrimaryKey(Department record);
	    
	    List<Department> getAll();
	    
	    int getIdByName(String name);
}
